package com.gjh.controller.system;

import com.github.pagehelper.PageInfo;
import com.gjh.controller.BeanController;
import com.gjh.service.system.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping(value = "/system/log")
public class SysLogController extends BeanController {
    @Autowired
    private SysLogService sysLogService;

    @RequestMapping(value = "/list",name = "展示日志列表")
    public String findAll(@RequestParam(name="page" ,defaultValue = "1") int pageNum, @RequestParam(name="pageSize" ,defaultValue = "10")int pageSize){
        PageInfo page=sysLogService.findPage(getCompanyId(),pageNum,pageSize);
        request.setAttribute("page",page);
        return "system/log/log-list";
    }
}
